package com.cn.wanxi.dao.impl;

import com.cn.wanxi.dao.HomeDao;
import com.cn.wanxi.model.*;
import com.cn.wanxi.util.GetSqlSession;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

public class HomeImpl implements HomeDao {



    @Override
    public List<ProductModel> getProductModelList() {
        SqlSession sqlSession = GetSqlSession.getSqlSession();//连接数据库
        List<ProductModel> list=sqlSession.selectList("com.cn.wanxi.dao.HomeDao.getProductModelList");
        GetSqlSession.commit();
        return list;
    }
}
